//
//  CNDwebViewViewController.m
//  BeeQuick_19
//
//  Created by clinging on 16/9/27.
//  Copyright © 2016年 CN Team. All rights reserved.
//

#import "CNDwebViewController.h"
#import "CNDiscountCouponController.h"

@interface CNDwebViewController ()

@end

@implementation CNDwebViewController


-(void)viewDidLoad{

    [super viewDidLoad];
    
    [self setupUI];
    //添加返回按钮
    
//    self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc]initWithImage:[UIImage imageNamed:@"v2_goback"] style:UIBarButtonItemStylePlain target:self action:@selector(backClick)];
//    self.navigationItem.title = @"使用规则";
    }

-(void)backClick{
   NSLog(@"WPHAHAHAHAH")
    CNDiscountCouponController * discount = [[CNDiscountCouponController alloc]init];
     [self.navigationController pushViewController:discount animated:true];
    


}
-(void)setupUI{
    UIWebView * webView = [[UIWebView alloc]initWithFrame:CGRectMake(0, 0, self.view.size.width,self.view.size.height )];
    [self.view addSubview:webView];
    NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:@"http://m.beequick.cn/show/couponrules"]];
    [webView loadRequest:request];
    




}
@end
